home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
MiscKit1.7.1
/
MiscKitArchive.mbox
/
mbox
/
000269_misckit-reques…aska.et.byu.edu_Thu Oct 6 15:35:03 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-10-30
|
2KB
Return-Path: <misckit-request@alaska.et.byu.edu>
Received: from alaska.et.byu.edu by darth.byu.edu (NX5.67d/NX3.0M)
id AA01168; Thu, 6 Oct 94 15:34:39 -0600
Received: from YVAX2.BYU.EDU by alaska.et.byu.edu; Thu, 6 Oct 1994 15:37:03 -0600
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-10 #7277)
id <01HHYM4610OW9N68TN@yvax.byu.edu>; Thu, 06 Oct 1994 15:36:33 -0600 (MDT)
Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-10 #7277)
id <01HHYM3HHG4091ZZWB@yvax.byu.edu>; Thu, 06 Oct 1994 15:35:45 -0600 (MDT)
Received: from darth.byu.edu by alaska.et.byu.edu; Thu,
6 Oct 1994 15:35:02 -0600
Received: by darth.byu.edu (NX5.67d/NX3.0M) id AA01160; Thu,
6 Oct 94 15:32:19 -0600
Received: by NeXT.Mailer (1.112.1.RR)
Date: Thu, 06 Oct 1994 15:32:15 -0600
From: Don Yacktman <don@darth.byu.edu>
Subject: Re: MiscString leaks memory when used as a Distributed Object.
To: misckit@alaska.et.byu.edu
Reply-To: don@darth.byu.edu
Message-Id: <9410062132.AA01160@darth.byu.edu>
Mime-Version: 1.0 (NeXT Mail 3.3 v112.1)
Content-Type: text/plain
Content-Transfer-Encoding: 7BIT
Warners: Yakko, Wakko, and Dot
> [ ... DO leaks when passing char *'s ... ]
Yes, this is a serious problem. I think you can avoid the
leaks if you send MiscStrings across the connection as bycopy
objects, since you can then actually free them on the other
side when you are done with them. It adds complexity to the
protocol a little bit, though. But that's how I've been doing
it on my projects. I always wrap my data in a bycopy object
and pass that across the connection.
I haven't tested it extensively, but I think that actually
does get you around the problem. I could be wrong though.
Try it and let us know...
In 4.0 with the Foundation Kit, the point is apparently moot,
as they have apparently been able to bite this bug in DO by
using the new Foundation Kit. (Perhaps doing more or less
what I'm suggesting to do, along with the new retain/release
strategy.)
---
Later,
-Don Yacktman
Don_Yacktman@byu.edu